﻿using System;
using UploadClient.Framework;

namespace UploadClient.ViewModel
{
    public class ConfigurationItemViewModel : ViewModelBase
    {
        private bool _DataChanged;
        private bool _FavoriteServer;
        private string _Host;

        private string _Name;
        private string _Password;
        private int _Port;
        private Guid _UploadType;
        private string _UserName;

        public ConfigurationItemViewModel() 
        {

        }

        public bool DataChanged
        {
            get
            {
                return _DataChanged;
            }
            set
            {
                _DataChanged = value;
                OnPropertyChanged("DataChanged");
            }
        }

        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
                OnPropertyChanged("Name");
            }
        }

        public string Host
        {
            get
            {
                return _Host;
            }
            set
            {
                _Host = value;
                OnPropertyChanged("Host");
            }
        }

        public int Port
        {
            get
            {
                return _Port;
            }
            set
            {
                _Port = value;
                OnPropertyChanged("Port");
            }
        }

        public Guid UploadType
        {
            get
            {
                return _UploadType;
            }
            set
            {
                _UploadType = value;
                OnPropertyChanged("UploadType");
            }
        }

        public string UserName
        {
            get
            {
                return _UserName;
            }
            set
            {
                _UserName = value;
                OnPropertyChanged("UserName");
            }
        }

        public string Password
        {
            get
            {
                return _Password;
            }
            set
            {
                _Password = value;
                OnPropertyChanged("Password");
            }
        }

        public bool FavoriteServer
        {
            get
            {
                return _FavoriteServer;
            }
            set
            {
                _FavoriteServer = value;
                OnPropertyChanged("FavoriteServer");
            }
        }
    }
}
